import { sys } from "cc";
import { udm } from "./managers/UserDataManager";

globalThis.dev = {

    clear() {
        udm.clear();
    },

    save(key = '1') {
        let profile0 = sys.localStorage.getItem(udm.localstorageKey);
        sys.localStorage.setItem('profile' + key, profile0);
    },

    load(key = '1') {
        let profile = sys.localStorage.getItem('profile' + key);
        sys.localStorage.setItem(udm.localstorageKey, profile);
    },

}